<template>
  <div>
    <MBX l1="权限管理" l2="权限列表"></MBX>
    <el-card class="xia">
      <el-table border :data="from">
        <el-table-column label="#" type="index"></el-table-column>
        <el-table-column label="权限管理" prop="authName"></el-table-column>
        <el-table-column label="路径" prop="path"></el-table-column>
        <el-table-column label="权限等级">
          <template slot-scope="scope">
            <div>
              <el-tag v-show="scope.row.level == 0">第一级</el-tag>
              <el-tag v-show="scope.row.level == 1" type="success"
                >第二级</el-tag
              >
              <el-tag v-show="scope.row.level == 2" type="warning"
                >第三级</el-tag
              >
            </div>
          </template>
        </el-table-column>
      </el-table>
    </el-card>
  </div>
</template>

<script>
export default {
  name: '',
  components: {},
  data() {
    return {
      from: []
    }
  },
  created() {
    this.getQanxian()
  },
  mounted() {},
  methods: {
    async getQanxian() {
      const res = await this.$QHL.Qxapi()
      console.log(res)
      this.from = res
    }
  }
}
</script>
<style scoped lang="scss"></style>
